﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Management;
using System.Text;

namespace WMI.NET.CIM
{
    /// <summary>
    /// The CIM_SAPSAPDependency class is an association between two service access points (SAPs), which indicates that the second SAP is required for the first SAP to connect with its service. For example, to print on a network printer, local printer access points must use underlying network-related SAPs, or protocol endpoints, to send the print request.
    /// </summary>
    public class CIM_SAPSAPDependency : CIM_Dependency
    {

        private CIM_ServiceAccessPoint _Antecedent;
        private CIM_ServiceAccessPoint _Dependent;

        /// <summary>
        /// The required SAP.
        /// </summary>
        public new CIM_ServiceAccessPoint Antecedent { get { return _Antecedent; } }

        /// <summary>
        /// The SAP is dependent on an underlying SAP.
        /// </summary>
        public new CIM_ServiceAccessPoint Dependent { get { return _Dependent; } }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="mbo"></param>
        public CIM_SAPSAPDependency(ManagementBaseObject mbo)
            : base(mbo)
        {
            _Antecedent = new CIM_ServiceAccessPoint(mbo);
            _Dependent = new CIM_ServiceAccessPoint(mbo);
        }
    }
}
